#ifndef PROCESS_H_
#define PROCESS_H_
#include "confFile.h"
#include "pMailbox.h"
#include "diskMemory.h"
#include "mainMemory.h"
#include "ui.h"
#include <stdio.h>

typedef struct  process{
	int pid;
	pthread_t processPtr;
}process_t;

process_t* processes;
void process_exec();
void initProcesses();
void processWrite(int vAddr, int pid, char* s, int amount, int isAtomic);
void processLoopRead(int vAddr, int  pid, int off, int amount);
void processReadByte(int pid, int vAddr, int amount);
void processReadToFile(int vAddr, int pid,int amount, char* filename);
void processDelete(int pid);
void killProcesses();

#endif /*PROCESS_H_*/
